package com.ruoyi.web.controller.manage;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.manage.service.IAppTypeTemplateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wwy
 * @Date: 2021/1/27 12:30
 */
@Api("移动端获取违法类型列表")
@RestController
@RequestMapping("/api")
public class AppTypeTemplateController {
    @Autowired
    private IAppTypeTemplateService appTypeTemplateService;
    /**
     * 获取全部违法类型
     * @return
     */
    @ApiOperation("获取全部违法类型")
    @GetMapping("/getTypeTemplateAll")
    public AjaxResult getTypeTemplateAll(){
        return appTypeTemplateService.getTypeTemplateAll();
    }
}
